package com.ruoyi.logistic.enums;

/**
 * 结算类型
 *
 * @author ruoyi
 */
public enum NetworkSheetPriceClientEnum
{
    networkNameId("networkNameId", "网点信息"),
    clientName("clientName", "客户名称"),
    nickName("nickName", "客户昵称"),
    clientCode("clientCode", "客户编码"),
    parentClientId("parentClientId", "父客户"),
    clientType("clientType", "客户类型"),
    objectName("objectName", "所属对象名称"),
    selletType("selletType", "结算方式"),
    sheetFee("sheetFee", "面单费"),
    preSheetFee("preSheetFee", "预收面单费"),
    unSheetFee("unSheetFee", "未收面单费"),
    objectSellPrice("objectSellPrice", "物料销售价(元)"),
    incomingPrice("incomingPrice", "来单单价"),
    fullLimit("fullLimit", "日充值上限"),
    clientStatus("clientStatus", "客户状态"),
    clientSourceId("clientSourceId","客户来源"),
    createTime("createTime","创建时间"),
    updateTime("updateTime","修改时间");

    private final String code;
    private final String info;

    NetworkSheetPriceClientEnum(String code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public String getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }

    public static String getValue(String code) {
        if (code == null) {
            return "";
        }
        for (NetworkSheetPriceClientEnum value : NetworkSheetPriceClientEnum.values()) {
            if (value.code.equals(code)){
                return value.info;
            }
        }
        return "";
    }
}
